<template>
	<view class="mainpadding_top">
		<view class="titletext bold hei_text textcenter">{{dataAll.name}}</view>
		<view class="strongtext  xiaohui textcenter margin_top6">更新时间：{{dataAll.updatetime_text}}</view>
		<view class="strongtext xiaohui textcenter margin_top6">{{dataAll.des}}</view>
		<view class="margin_top6">
			<u-parse :content="dataAll.content"></u-parse>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				dataAll: {},
			}
		},
		onLoad(options) {
			this.listid = options.id
			this.getDetail()
		},
		methods: {
			getDetail() {
				httpRequest.request('/api/index/sxyDetail', 'GET', {
					id: this.listid,
				}).then(res => {
					res.data.content = res.data.content ? res.data.content.replace(/\<img/gi,
						'<img style="display:block" ') : "";
					this.dataAll = res.data
				}).catch(err => {})
			},
		}
	}
</script>

<style>

</style>